package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 客户表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "customer")
public class Customer implements Serializable {
    /**
     * 客户编号
     */
    @TableId(value = "customer_no", type = IdType.INPUT)
    private Integer customerNo;

    /**
     * 客户名称
     */
    @TableField(value = "customer_name")
    private String customerName;

    /**
     * 跟进状态 0未跟进 1已跟进
     */
    @TableField(value = "is_follow_up")
    private Integer isFollowUp;

    /**
     * 0解锁 1锁定,（锁定后该客户就不会掉入公海）
     */
    @TableField(value = "is_lock")
    private Integer isLock;

    /**
     * 成交状态 0 未成交 1 已成交
     */
    @TableField(value = "deal_status")
    private Integer dealStatus;

    /**
     * 成交时间
     */
    @TableField(value = "deal_time")
    private Date dealTime;

    /**
     * 首要联系人编号
     */
    @TableField(value = "contacts_id")
    private Integer contactsId;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 电话号码
     */
    @TableField(value = "telephone")
    private String telephone;

    /**
     * 邮箱地址
     */
    @TableField(value = "email")
    private String email;

    /**
     * 客户来源
     */
    @TableField(value = "customer_source")
    private Integer customerSource;

    /**
     * 客户级别
     */
    @TableField(value = "customer_level")
    private Integer customerLevel;

    /**
     * 客户行业
     */
    @TableField(value = "customer_field")
    private Integer customerField;

    /**
     * 客户标签
     */
    @TableField(value = "customer_label")
    private Integer customerLabel;

    /**
     * 客户地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 客户官网
     */
    @TableField(value = "website")
    private String website;

    /**
     * 下次联系时间
     */
    @TableField(value = "next_time")
    private Date nextTime;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

    /**
     * 创建人编号
     */
    @TableField(value = "create_user_id")
    private Integer createUserId;

    /**
     * 负责人编号
     */
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 最后跟进时间
     */
    @TableField(value = "last_time")
    private Date lastTime;

    /**
     * 放入公海时间
     */
    @TableField(value = "pool_time")
    private Date poolTime;

    /**
     * 放入公海理由
     */
    @TableField(value = "put_pool_reason")
    private String putPoolReason;

    /**
     * 领取理由
     */
    @TableField(value = "collect_reason")
    private String collectReason;

    /**
     * 进入公海前负责人id
     */
    @TableField(value = "pre_owner_user_id")
    private Integer preOwnerUserId;

    /**
     * 1 分配 2 领取
     */
    @TableField(value = "is_receive")
    private Integer isReceive;

    /**
     * 最后一条跟进记录
     */
    @TableField(value = "last_content")
    private String lastContent;

    /**
     * 接收或领取到客户时间
     */
    @TableField(value = "receive_time")
    private Date receiveTime;

    /**
     * 客户状态 1 正常 2锁定 3删除
     */
    @TableField(value = "`status`")
    private Integer status;

    private static final long serialVersionUID = 1L;
}